package com.mooc.apigateway.service;

import com.mooc.apigateway.dao.CityDao;
import com.mooc.apigateway.model.City;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityService {

    @Autowired
    private CityDao cityDao;

    public List<City> getAllCitys() {

       return  cityDao.getAllCitys();
    }
}
